package com.coolw.spring.statemachine.support.order;

import com.coolw.common.api.BaseDomain;
import com.coolw.spring.statemachine.enums.OrderStatusEnum;
import com.coolw.spring.statemachine.support.BaseContext;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 状态机上下文
 *
 * @author coolw
 * @date 2024/4/17 18:01
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class OrderContext extends BaseDomain implements BaseContext {

    private static final long serialVersionUID = 2189311096948685610L;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 当前订单状态
     */
    private OrderStatusEnum orderStatusEnum;

    // 其他字段省略......
}
